public class Main {

	public static void main(String[] args) {
		// DownLoadUrl url = new DownLoadUrl();
		// url.onStart();
		// TestBox box = new TestBox();
		// box.go();
		DownTools tools = new DownTools();
		DownTools.DownLoadListener listener = new DownTools.DownLoadListener() {
			
			public void onSuccess() {
				System.out.println("success");
				System.exit(0);
			}
			
			@Override
			public void onError() {
				
			}
		};
		tools.startDownLoad("http://pic.miercn.com/uploads/allimg/150915/85-150915142205.jpg", listener);
	}
}
